refectored persistable spec to use mock db