fixes to buttons in database module