Fixed db ref