Configure database and add useful gems