added initial db code