established schema and setup database