initiates database connection, adds schemas, creates routes