MySQL and iax in Asterisk

Can someone please tell me how I can get asterisk v1.2 & v1.4 to use iaxfriends table in MySQL?