Corrected bugs in database creation. PHP mysqli support.