grid changes

modified and removed a lot of metro gallery code.
So many things

I hate to do this but I rather not lose my changes like last time.
Various changes. Switched to EF for the database model. Broken.