Update Alibaba.class.php

Separating database part in login function and adding some new function.