adding tables and models and api controller