added postgres tables and new routes