doc: move all the grn_db_*() documents to Sphinx text from header file

add to new file "grn_db.txt", and the doc/files.am change reflect the addtion in Makefile.