#13 Fixed a bug duplicating locations in the database