get tips from database