#50 Database script, repository, model implementation.