removed db, no longer needed. Fixed some issues with errors not being passed through callbacks properly