Almost done refactoring schemas and new routes. Moved handleTransaction method from utils to database helper