fixed sql
changed autoload generation to composer install