put database request functions into seperate modules