implemented basic insert and listing features of locations