updated sql tables and entities