Fleshed out database scripts.