Interfaces of repositories. Initial implementation of database.