started writing script for inserting matrices into the database