Database code start