Add automatic database location update via ajax