Added case sensitivity.

Fixed crash on setting serverIP
Fixed handling of database connections.
test