handle database arg