Implemented getSHA with odb
Removed unused functions
Added function to check if SHA exists
Updated addHashEntry to use odb
Removed creation of  prepared statements
Hash now hash a function to check if it is valid
Adding new image records with odb