working cont weights, fill forms with database data