update instance controller. add database model searching and validation function. and index page print ip log now