more db config, rearrange gemfile