Backend updates

Fixed delete functions for all tools on the backend.

Wrote delete functions in core/db.class.php and added a delete form
function in core/form.class.php.