connected with mysql database, implemented LOOKUP function - works