Finished backend API for SQLAlchemy

Change-Id: I311a634728a95616f0dd6ae39d300ba4c6a4e3fc