Add comments
Add user, password, db variables and ssl=true
Handle input/output
Clean POSTs