user and db support + optimization