Fix the database class when a non standard path was used with the sqlite database.

git-svn-id: http://fusionpbx.googlecode.com/svn/trunk@4107 e2954ef0-caed-11de-bd98-e341d93cc3cc