fixed typo in comments and added precompile task so the database can be generated even if the env is production.