Custom mysqli framework