Fixed database issues. Locked 310 page