improve serverside db config  strukture