add initial db code