Make remote database setup work correctly