Remove the convenience functions, reorganize around the SQLAlchemy class
Move to using the new way for accessing the orm in models
Move change_id functionality over

Signed-off-by: Joonas Bergius <joonas.bergius@gmail.com>