Database creation code.