updated call to mysqli API for compatibility. Small additions/tweaks to db.
init.php information added. (Unsure if deleted or never added before)