Add gems in a gemfile to begin with. Fix #1
Add a procedure to properly load the application. Fix #2
Load database configuration. Fix #3