Added ending newlines.
Escaped type field in db scheme.
MySQL upload fix #1.
Proper password handling, MySQL fix #2.
Merge pull request #6 from alexknvl/master

MySQL upload fix #1.