Added database's functionality.