Shorten getter and setter for database.
Reorganizing source code.