created some backend for inserting new records and images