creating api class for the imiq db