[FIX] Changed tables and fields names for queries

- Changed all tables and fields names for each MySQL query according
   with the new names after the migration of micala database.