Optional usage of database implemented