small db fixes, port options and creates field for serial lock