refactored mysql-adapter to use mysql instead of scope