Restructured to use routes. Added local dev db connection.