switched to msqli extension for simple db class