This should ensure that the database is only created if there are no
tables in it.