enable v2 api sqlalchemy tests

enable v2 api sqlalchemy tests
fix how mongo impl calculates period start time

Change-Id: I6149f6b77b5d82a93d1b3e92a2940f6bf953ad72
Merge "enable v2 api sqlalchemy tests"