database now saves location