Managing the number of tables in SQL databases