Add api function for db setup route.
Add feature to create db tables to frontend.