changed db to mysqli