added instance table to database