added status option
db selection