db creation script from Miguel Grinberg Flask tutorial