create local db script