trying to use database. Some errors are there.