add gemfile
port specs for database connection class