Database now works with generic api server

yay