implemented mysqli which is better