database insert & sqs