fixed wrong table setup in tables.sql