db broken in many ways. Casting problems + construction problems