update gems and fix database.yml
add some validates things