Removing the unnecessary database