Fixed post database options to return sane values.
Added array_to_string function.
Fixed bug