Fixing bugs. All queries preparedStmt'd