Closes #5, and fix some dbref search and update issues