moving to db
server now reads from db