type in endpoint
some debug info
changed db name to 'flow' added authentication