Extracted DB API layer

Extracted DB operations on Project and Story objects to a separate access
layer. That'll help to control SQLA operation more granullary.

This approach is used among most of OpenStack projects.

Change-Id: I0bde262eabb71c0613fcc06b93aefc70326269b7
Merge "Extracted DB API layer"