connect database for identifying code