Creating db func added
Merge branch 'master' of https://github.com/fmaurica/fm-mysql

Because of direct modification on github