flask script and db init