db scripts and notes