#14 implemented methods for working with the model and database. Added support for locales (#15).