Add support for modal and delete from database