database fixes and started workflow