found the bug in sqldatabase