Get locations from database and display in table