added delete and edit functions to Questions database, with error test messages