refactoring releasedao stuff.