resolving problem with outdated gems, changed db from mysql to postgre