affordable housing criteria auckland, mysql convert