completed db unit tests