set up server test to work with database, working with request and all the promises