added database module and GET routes for collections