clean up database functionnality added to the ui