Huge overhaul. Actually creates database now.