config database to handle rds postgres