Emit a backtrace on db_error logs

This will help by giving the context of PHP execution along with the DB error. That way developers can know why the database query was executed along with why the statement failed.

This also closes a regression where database errors are not logged from ORM queries