Added functionality to erase existing entries in database tables

2 jobs for feature/erase_first in 2 minutes and 38 seconds