work with database updated