Custom Search Widget

PLease,i am newbie to elgg widget development,i have been struggling for 1 month just to develop Custom Search Widget.  i am developing a widget that Searches through custom database with following fields

Program ID

Name of Program

Name of School


Course Duration


The output of a search query, should display the following per what has been entered into the database.

I will be glad if any one can help  me finish it..