authorize and search functions
updated search function
began work on db integration