Added a remove function to  the database