Add ap-add command for creating ap database