Introduced mysql-tables, saving data to the DB