database localhost fix