minor fix for database access
Merge pull request #4 from auk/master

minor fix for database access