Changed files to use mysql instead of shelves