adding db support