Resolves #8 - Converted database to use prepared statements always. improved logging of prepared statements, deprecated dataobject::get/getbyfields and other unsafe database calls