Fixed type casting errors
No more repeating messages
Updated directory for normalized images
Added functionality to update database