Refactor shell command exec and add use more configuration options on database create in PostgreSQL (fixes #55)