add database util methods
Merge pull request #5 from FUNProject14/tos_kamiya/gen-database-method

add database util methods