Revert "Database code(Not working)"

This reverts commit 893e8f1b45f16d97d498d58628ba9eeb1ef83da1.