added option for db