Fix cli installer

Fixed db config params.

Also during reinstall I had an error:
`ERROR: Cannot delete or update a parent row: a foreign key constraint fails`

`SET FOREIGN_KEY_CHECKS=0` solved the problem.