added insert and select statements