Fix bug and move database to docs

Fix bug and move database to docs