Auto run "CREATE TABLE" for :memory: database on sqlite3

This is useful to run `:memory:` database on sqlite3.

This is also based on @kazeburo's [patch](https://gist.github.com/kazeburo/d9f2e5d9dfe93798aa84).