[mysql]: proper generation of table