[#35] Remove using of sqlalchemy objects and queries