removeFromDB renamed deleteResource and made static.
Recoded deleteResource to use conditionals.
a space changed maybe