Added record insertion into database