Solve TPDatabaseMgr BUG