Rewrote installer and data.php to support database installation.