Now working select from two tables and inserting types in page downlist.