Sql Search Query Part Of String In Python