Open pub database