started on functions, added SQL for equipment data and rentals