added mysqli support