move models.rs and schema.rs into database::inner create util module (with hash and jobs)
also put loggersink in util.rs