DB prepare script.