removed count query from database library
database update