Set up schema and connection to database