updated installer.php

now creates table `api` and `settings`.
now writes $dbtype into `config.php`.
insert default settings into database.