fixed method call to Database::executeGetScalar()
fixed the undefined method call