Question algorithm DB functions