move function and trigger creation in ddl.sql

Context is in https://github.com/QueueClassic/queue_classic/issues/233
rename variable in QC Setup
add Rails migration
temporary rename of readme.md -> to readme

I want it to be README.md, this is annoying me big time. :)
rename README
give some love to README
Merge branch 'fix-upgrade'
Merge branch 'master' into detect-rails-db-connection