rewrite: db & model; application#db_init; post#api_list; fixed all warnings