added database functionality for get_help