use sinatra-activerecord.