toSQL({db: db_name}) to create database
fixed toSQL() bug