This commit adds unit tests and removes oslo_db dependency. Change-Id: I735044fbebefcea2f73b6431e55b9c67f5508c17