flask learn - add database model