Minor changes and gallery update with SQL..