Updated port in HTTP endpoint

Also fixed the create db method.