Added indices

Index for galleries_id foreign key in images table
Index for email in user table, added a constraint on the db requiring unique email