Update database.rb

added sqlite3 compatibility