Updated initialization script to work on empty db