Deletion from database works for display tables too; Some bugfixes