Added DB functionality and checking for normalized images
Master Script now uses the database for extra awesomeness
Changed type errors
New db design.