Beginnings of working with the local DB