Completed database and cropping functions update

The functions for managing the database are completed so any value can
be added, changed or removed. Additionally the cropping class will now
crop the image in the source directory. The cropping will not work
properly, however, as the cropping information has not been added to the
database yet.