Fix issue with remote DB using local_rails_env, add some logging, and allow user as well as username

I think there was a bug with the remote DB using local_rails_env, causing my imports to fail. Also my database.yml uses user: instead of username: (I guess both are valid). While I was at it I added some logging for the local actions.