Added more tests for stacky db api

* Added 2 more tests for stacky db api
* These tests need string_to_datetime method from common tools
and hence dependent on https://review.openstack.org/#/c/73258/

Change-Id: If6a0af9038c4ca3fe704ca84abde68845b6956dc
Merge "Added more tests for stacky db api"