Installer wont pass DB Test Connection

Fixes the said bug
Update DatabaseForm.php
JSon Encoding does not work

Each time I use json_encode it corrupts arrays on reading (i.e _decode). I have tested serialization and works fine without illegal offset that comes with json_decode
Merge pull request #118 from mtangoo/1.10.0

Installer wont pass DB Test Connection