add main controller, database config and schema file