my ($counter) = $db->selectrow_array('SELECT pagecounter FROM counters WHERE pagename = ?', undef, $pagename);