added column status to table loan. Fetch only active loans from DB