stores users count to database