working oauth implementation in sql