Changed functions to accept callbacks instead of using events.
Removed unused variables and dependencies.
Broke out "execute" into "executeUpdate" and "executeQuery".
Fixed tests so they run.