Changes method names
Changes how to add and invoke database functions
Adds transaction function