Implement drawing of APs from database