Fix select all ability when sending to db