fixed: PrepareSQL in ViewDatabase.cpp was missing an argument.