some functions for work with database are added