added options for db