back end db api integration written but not working
broken promises