Added database and updated common library