DB helper methods.