resolved sql problem
fix application.js

- moved application.js inside assets/javascripts
- removed jquery.js, prototype.js and rails.js to use the gems.