added db schema, main app script