Change installer and database installation.

Installer and base, credits to Project Skyfire.
Merge pull request #1 from warkantos/master

New installer and database installation method.