changed db api