set correct paramaters in prepared statements;

fixed a bug in Sleuthkitcase where prepared statements were not getting the correct paramaters set and hence reterning erroneous results
Merge pull request #304 from millmanorama/sql_paramaters_fix

set correct paramaters in prepared statements;
Made return values in DB code more consistent with enums and added more checks