added at_db_errno() function torepace mysql_errno, still needed work re:mantis 5394