Automation of opening database.