remove error and reason from database response struct
remove tests for error and reason fields
do not use var syntax
fix var statements