update method for database
Merge pull request #25 from bayendor/database-reader

update method for database