first DB post function