updating interface, adding db locks