insert point to database function works!