change work with database