Populating the database variables into an array input[]