Add db and sql feature