encodeURIComponent in the database URL

Othewise special characters in the password will cause problems
0.2.1