made locations editable and pgrest-free