changed db access