added gemfile and fix database