Make database configurable, use a default port if none given