working add sql row functionality