SQL for database and table added