Fix modals for table/database