Creation of the galaxy DB