db conection register method