fix problem with table creation in DB