Bug fix for demo in tester and db access